// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init({
    env: "cloudwx-dm78q"
})
DB = cloud.database().collection("market");

// 云函数入口函数
exports.main = async (event, context) => {
    var allList = cloud.database().collection("market").get();

    return allList;
}